package 练习;

public class text01 {
    public static void main(String[] args) {
        int[] num = {3, 2, 4};
        int target = 6;
        for (int i = 0; i < num.length; i++) {
            for (int j = 0; j < num.length; j++) {

                if (num[i] + num[j] == target) {
                    System.out.println("下标为[" + i + "," + j + "]");

                }
            }
        }
    }
}
